package com.aijk.commons.utils;


/**
 * SQL工具类
 * Created by ChenDeWei on 2016/6/27.
 */
public class SqlUtils {

    /**
     * MySQL 将字段转为GBK按照汉字排序
     *
     * @param orderBy
     * @return
     */
    public static String getMySqlGbkOrder(String orderBy) {
        return String.format("CONVERT(%s USING gb2312)", orderBy);
    }
}
